package com.qf.md.unit.dao;
import com.qf.entity.md.unit.MdUnitMeasure;
import com.qf.md.unit.param.UnitSearchParam;


import java.util.List;

public interface MdUnitMeasureDAO {
    /**
     * 分页查询
     */
    //[{},{},{},。。。]
    List<MdUnitMeasure> selectPage(UnitSearchParam unitSearchParam);
    /**
     * 添加一条数据
     */
    int insertMdUnitMeasure(MdUnitMeasure mdUnitMeasure);
    MdUnitMeasure selectByPrimaryKey(Long measureId);

    int updateMdUnitMeasure(MdUnitMeasure mdUnitMeasure);
    List<MdUnitMeasure> selectByPrimaryUnit();
    List<MdUnitMeasure> selectAllUnit();
    /**
     * 根据id删除一条数据
     */
    int deleteByPrimaryKey(Long measureId);
    /**
     * 删除多条数据
     */
    int deleteBatch(List<Long> ids);

    void insertBatchMdUnitMeasure(List<MdUnitMeasure> cachedDataList);
}
